nv.defineAwesomeClass("nv.Cookie", function ($this) {
    var name;
    $this.__construct = function (_name) {
        name = _name;
    };
    $this.get = $this.Get = function () {
        var _nameEQ = name + "=";
        var _ca = document.cookie.split(';');
        for (var i = 0; i < _ca.length; i++) {
            var _c = _ca[i];
            while (_c.charAt(0) == ' ') _c = _c.substring(1, _c.length);
            if (_c.indexOf(_nameEQ) == 0) return unescape(_c.substring(_nameEQ.length, _c.length));
        }
        return null;
    };
    $this.isSet = $this.IsSet = function () {
        return $this.get() !== null;
    };
    $this.set = $this.Set = function (value, timeInSecs, path, domain, secure) {
        var expires = "";
        if (timeInSecs) {
            var date = new Date();
            date.setTime(date.getTime() + (timeInSecs * 1000));
            expires = "; expires=" + date.toGMTString();
        }
        if (typeof path == "undefined") {
            path = "";
        } else {
            path = "; path=" + path;
        }
        if (typeof domain == "undefined") {
            domain = "";
        } else {
            domain = "; domain=" + domain;
        }
        if (typeof secure == "undefined") {
            secure = "";
        } else {
            secure = "; secure";
        }
        document.cookie = name + "=" + value + expires + path + domain + secure;
    };
    $this.erase = $this.Erase = function (path) {
        $this.set("", -1000, path);
    };
}, function ($this) {
    $this.TIME_ONE_YEAR = 31556926;
});